#ifndef METAFIELD_H
#define METAFIELD_H

#include <QString>
#include <QVariant>
#include <iostream>

using namespace std;

class MetaField
{
public:
    MetaField();

    QString const & getFieldName() const;
    void setFieldName(QString& name);

    QVariant get(QObject* instance);
    void set(QObject* instance, QVariant val);

private:
    QString m_fieldName;
    QString m_type;
    bool m_read;
    bool m_write;

};

#endif // METAFIELD_H
